package com.ppd.yygh.sms.utils;

import org.springframework.beans.factory.InitializingBean;

public class ConstantPropertiesUtils implements InitializingBean {

    //生产环境请求地址：app.cloopen.com
    private String serverIp = "app.cloopen.com";
    //请求端口
    private String serverPort = "8883";
    //主账号,登陆云通讯网站后,可在控制台首页看到开发者主账号ACCOUNT SID和主账号令牌AUTH TOKEN
    private String accountSId = "8a216da87a332d53017a9dd5c3d925fe";
    private String accountToken = "6bba5d00cb95419c8e15450240053d68";
    //请使用管理控制台中已创建应用的APPID
    private String appId = "8a216da87a332d53017a9dd5c4b92604";

    public static String ACCOUNT_SID;
    public static String ACCOUNT_TOKEN;
    public static String APP_ID;
    public static String SERVER_IP;
    public static String SERVER_PORT;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCOUNT_SID=accountSId;
        ACCOUNT_TOKEN=accountToken;
        APP_ID=appId;
        SERVER_IP=serverIp;
        SERVER_PORT=serverPort;
    }
}
